<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:73:"/webHome/host6366235/www/public/../application/home/view/newss/index.html";i:1680881887;s:65:"/webHome/host6366235/www/application/home/view/public/footer.html";i:1680881888;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title><?php echo $setting['webname']; ?>-动态</title>
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/>
    <meta content="yes" name="apple-mobile-web-app-capable"/>
    <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
    <meta content="telephone=no" name="format-detection"/>
    <link rel="shortcut icon" href="/public/static/admin/uploads/set/<?php echo $setting['ico']; ?>">
    <link type="text/css" rel="stylesheet" href="/public/static/admin/css/bootstrap.min.css">
    <link type="text/css" rel="stylesheet" href="/public/static/home/themes/css/base.css">
    <link type="text/css" rel="stylesheet" href="/public/static/home/themes/css/home.css">
    <script type="text/javascript" src="/public/static/home/themes/js/jquery.min.js"></script>
    <script type="text/javascript" src="/public/static/home/themes/js/slider.js"></script>
    <script type="text/javascript" src="/public/static/home/themes/js/tab.js"></script>
    <style>
        *{font-size:12px!important;}
        .news_box{
            height: 130px;
            border-bottom: 1px solid #ccc;
        }
        .title{
            font-size:1.5rem!important;
            font-weight: bold;
            color: #333;
            display: block;
        }
        .news_text{
            width: 60%;
            height: 130px;
            float:left;
            position: relative;
        }
        .news_text h2{
            margin:10px 0 10px 10px;
        }
        .news_text p.desc{
            margin:0px 10px 0px;
            height: 30px;
            overflow: hidden;
            text-align:justify;
        }
        .news_text p.hits{
            position: absolute;
            bottom:5px;
            left:10px;
        }

        .news_box_all{
            height: 110px;
            border-bottom: 1px solid #ccc;
        }
        .news_text_all{
            height: 110px;
            position: relative;
        }
        .news_text_all h2{
            margin:10px;
        }
        .news_text_all p.desc{
            margin:0px 10px 0px;
            height: 30px;
            overflow: hidden;
            text-align:justify;
        }
        .news_text_all p.hits{
            position: absolute;
            bottom:5px;
            left:10px;
            width: 100%;
        }
        .news_img{
            width: calc(40% - 20px);
            height: 110px;
            margin:10px;
            box-sizing: border-box;
            float:left;
            overflow: hidden;
            border-radius: 5px;
         }
        .news_img img{
            height: 100%;
        }
    </style>
</head>
<body>

<section class="aui-flexView">
    <header class="aui-navBar aui-navBar-fixed b-line">
        <a href="javascript:history.back(-1)" class="aui-navBar-item">
            <i class="icon icon-return"></i>
        </a>
        <div class="aui-center">
            <span class="aui-center-title">动态</span>
        </div>
        <a href="javascript:;" class="aui-navBar-item">
            <i class="icon icon-sys"></i>
        </a>
    </header>
    <section class="aui-scrollView">
        <div class="aui-watch-box">
            <?php foreach($news as $vs): if(!empty($vs['cover'])): ?>
            <div class="news_box">
                <a href="<?php echo url('newss/hits'); ?>?id=<?php echo $vs['id']; ?>&tid=<?php echo $tid; ?>">
                    <div class="news_text">
                        <h2 class="title"><?php if(mb_strlen($vs['desc'],'utf-8') > 22): ?><?php echo mb_substr($vs['desc'],0,22,'utf-8'); ?>……<?php else: ?><?php echo $vs['title']; endif; ?></h2>
                        <p class="desc"><?php if(mb_strlen($vs['desc'],'utf-8') > 30): ?><?php echo mb_substr($vs['desc'],0,30,'utf-8'); ?>……<?php else: ?><?php echo $vs['title']; endif; ?></p>
                        <p class="hits"><i class="fa fa-clock-o"></i> <?php echo $vs['create_time']; ?> <i class="fa fa-heart"></i> <?php echo $vs['hits']; ?> </p>
                    </div>
                    <div class="news_img">
                        <img class="img" src="<?php echo $vs['cover']; ?>" alt="">
                    </div>
                </a>
            </div>
            <?php else: ?>
            <div class="news_box_all">
                <a href="<?php echo url('newss/hits'); ?>?id=<?php echo $vs['id']; ?>&tid=<?php echo $tid; ?>">
                    <div class="news_text_all">
                        <h2 class="title"><?php if(mb_strlen($vs['desc'],'utf-8') > 40): ?><?php echo mb_substr($vs['desc'],0,38,'utf-8'); ?>……<?php else: ?><?php echo $vs['title']; endif; ?></h2>
                        <p class="desc"><?php if(mb_strlen($vs['desc'],'utf-8') > 66): ?><?php echo mb_substr($vs['desc'],0,64,'utf-8'); ?>……<?php else: ?><?php echo $vs['title']; endif; if(mb_strlen($vs['desc'],'utf-8') > 66): ?><?php echo mb_substr($vs['desc'],0,64,'utf-8'); ?>……<?php else: ?><?php echo $vs['title']; endif; ?></p>
                        <p class="hits"><i class="fa fa-clock-o"></i> <?php echo $vs['create_time']; ?> <i class="fa fa-heart"></i> <?php echo $vs['hits']; ?> </p>
                    </div>
                </a>
            </div>
            <?php endif; endforeach; ?>
<!--            <div class="news_box">-->
<!--                <a href="">-->
<!--                    <div class="news_text">-->
<!--                        <h2 class="title">中国足协前副主席王登峰被双开 通报涉罕见问题</h2>-->
<!--                        <p class="desc">3月2日，记者从全市住房和城乡建设工作会上获悉，2021年，石家庄市将打通主城</p>-->
<!--                        <p class="hits"><i class="fa fa-clock-o"></i> 2023年4月6日10:35:08 <i class="fa fa-heart"></i> 120 </p>-->
<!--                    </div>-->
<!--                    <div class="news_img">-->
<!--                        <img class="img" src="https://nimg.ws.126.net/?url=http%3A%2F%2Fcms-bucket.ws.126.net%2F2023%2F0401%2F31b3dc92p00rsepwz008hc0009c0070c.png&thumbnail=330x2147483647&quality=75&type=webp" alt="">-->
<!--                    </div>-->
<!--                </a>-->
<!--            </div>-->
<!--            <div class="news_box">-->
<!--                <a href="">-->
<!--                    <div class="news_text_all">-->
<!--                        <h2 class="title">中国足协前副主席王登峰被双开 通报涉罕见问题</h2>-->
<!--                        <p class="desc">3月2日，记者从全市住房和城乡建设工作会上获悉，2021年，石家庄市将打通主城</p>-->
<!--                        <p class="hits"><i class="fa fa-clock-o"></i> 2023年4月6日10:35:08 <i class="fa fa-heart"></i> 120 </p>-->
<!--                    </div>-->
<!--                </a>-->
<!--            </div>-->
        </div>
    </section>
    <link href="/public/static/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
<footer class="aui-footer">
    <a href="<?php echo url('Indexs/index',['tid'=>$tid]); ?>" class="aui-tabBar-item aui-tabBar-item-active">
            <span class="aui-tabBar-item-icon">
                <i class="icon icon-home"></i>
            </span>
        <span class="aui-tabBar-item-text">首页</span>
    </a>
    <a href="<?php echo url('My/register',['tid'=>$tid]); ?>" class="aui-tabBar-item ">
            <span class="aui-tabBar-item-icon">
                <i class="fa fa-user-plus"  style="font-size:18px !important;"></i>
            </span>
        <span class="aui-tabBar-item-text">我要报名</span>
    </a>
    <!--<a href="news.html" class="aui-tabBar-item">-->
    <!--    <span class="aui-tabBar-item-icon">-->
    <!--        <i class="icon icon-find"></i>-->
    <!--    </span>-->
    <!--    <span class="aui-tabBar-item-text">消息</span>-->
    <!--</a>-->
    <!--<a href="community.html" class="aui-tabBar-item">-->
    <!--    <span class="aui-tabBar-item-icon">-->
    <!--        <i class="icon icon-comm"></i>-->
    <!--    </span>-->
    <!--    <span class="aui-tabBar-item-text">社区</span>-->
    <!--</a>-->
    <a href="<?php echo url('My/index',['tid'=>$tid]); ?>" class="aui-tabBar-item ">
            <span class="aui-tabBar-item-icon">
                <i class="icon icon-car"></i>
            </span>
        <span class="aui-tabBar-item-text">我的</span>
    </a>
</footer>
</section>
</body>
</html>